package com.iotechn.unimall.admin.api.enterprise;
import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.EnterpriseImageDO;
import com.iotechn.unimall.data.model.Page;

/**
 * 图片表
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-07-16 13:23:52
 */
@HttpOpenApi(group = "admin.enterpriseImage", description = "图片管理")
public interface AdminEnterpriseImageService {

    @HttpMethod(description = "列表", permission = "list", permissionParentName = "企业信息", permissionName = "产品管理")
    public Page<EnterpriseImageDO> list(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit,
            @HttpParam(name = "location", type = HttpParamType.COMMON, description = "位置") String location,
            @HttpParam(name = "name", type = HttpParamType.COMMON, description = "名字") String name,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "创建", permission = "generator:settingsimage:create", permissionParentName = "企业信息", permissionName = "产品管理")
    public EnterpriseImageDO create(
            @NotNull @HttpParam(name = "enterpriseImageDO", type = HttpParamType.COMMON, description = "") EnterpriseImageDO enterpriseImageDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "修改", permission = "generator:settingsimage:update", permissionParentName = "企业信息", permissionName = "产品管理")
    public String update(
            @NotNull @HttpParam(name = "enterpriseImageDO", type = HttpParamType.COMMON, description = "") EnterpriseImageDO enterpriseImageDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "删除", permission = "generator:settingsimage:delete", permissionParentName = "企业信息", permissionName = "产品管理")
    public String delete(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "删除Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "详情", permission = "generator:settingsimage:detail", permissionParentName = "企业信息", permissionName = "产品管理")
    public EnterpriseImageDO detail(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

//    @HttpMethod(description = "激活冻结", permission = "generator:settingsimage:update", permissionParentName = "管理", permissionName = "激活")
//        public Boolean updateStatus(
//                @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId,
//                @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "用户信息") Long id,
//                @NotNull @HttpParam(name = "status", type = HttpParamType.COMMON, description = "用户信息") Integer status) throws ServiceException;

    @HttpMethod(description = "批量删除", permission = "operation:settingsimage:batchdelete", permissionParentName = "企业信息", permissionName = "产品管理")
    public String batchDelete(
            @NotNull @HttpParam(name = "ids", type = HttpParamType.COMMON, description = "参数Id") String ids,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员Id") Long adminId) throws ServiceException;

}

